const merge = require("webpack-merge")
const common = require('./webpack.common.js')
const webpack = require('webpack')

module.exports=merge(common,{
    devServer:{
        inline:true,
        progress:true,
        openPage: 'index.html',
        hot:true
    },
    plugins:[
        new webpack.NamedModulesPlugin(),
         new webpack.HotModuleReplacementPlugin(),
        new webpack.DefinePlugin({
            "process.env": {
              NODE_ENV: JSON.stringify('development')
            }
          })
    ]
})